import { LAYOUT } from '@/router/container'

export default [
  {
    path: '/login',
    name: 'Login',
    meta: {
      hideTab: true,
      ignoreKeepAlive: true
    },
    component: () => import('@/views/login/index.vue')
  },
  {
    path: '/redirect',
    name: 'Redirect',
    component: LAYOUT,
    children: [
      {
        path: '/redirect/redirectPage',
        name: 'RedirectPage',
        meta: { hideTab: true, ignoreKeepAlive: true },
        component: () => import('@/views/redirect/index.vue')
      }
    ]
  },
  {
    path: '/:path(.*)*',
    name: 'NotFound',
    component: LAYOUT,
    children: [
      {
        path: '/:path(.*)*',
        name: 'NotFound',
        meta: { hideTab: true, ignoreKeepAlive: true },
        component: () => import('@/views/error/404.vue')
      }
    ]
  }
]
